Input-Thrifty Extrema Testing
نویسندگان
چکیده
We study the complexity of one-dimensional extrema testing: given one input number, determine if it is properly contained in the interval spanned by the remaining n input numbers. We assume that each number is given as a finite stream of bits, in decreasing order of significance. Our cost measure, referred to as the leading-input-bits-cost (or LIB-cost for short), for an algorithm solving such a problem is the total number of bits that it needs to consume from its input streams. An input-thrifty algorithm is one that performs favorably with respect to this LIB-cost measure. A fundamental goal in the design of such algorithms is to be more efficient on “easier” input instances, ideally approaching the minimum number of input bits needed to certify the solution, on all orderings of all input instances. In this paper we present an input-thrifty algorithm for extrema-testing that is log-competitive in the following sense: if the best possible algorithm for a particular problem instance, including algorithms that are only required to be correct for presentations of this one instance, has worst-case (over all possible input presentations) LIB-cost c, then our algorithm has worst-case LIB-cost O(c lgmin{c, n}). In fact, our algorithm achieves something considerably stronger: if any input sequence (i.e. an arbitrary presentation of an arbitrary input set) can be tested by a monotonic algorithm (an algorithm that preferentially explores lower indexed input streams) with LIB-cost c, then our algorithm has LIB-cost O(c lgmin{c, n}). Since, as we demonstrate, the cost profile of any algorithm can be matched by that of a monotonic algorithm, it follows that our algorithm is to within a log factor of optimality at the level of input sequences. We also argue that this log factor cannot be reduced, even for algorithms that are only required to be correct on input sequences with some fixed intrinsic monotonic LIB-cost c. The extrema testing problem can be cast as a kind of list-searching problem, and our algorithm employs a variation of a technique called hyperbolic dovetailing that was introduced in that context. Viewed in this light, our results can be interpreted as another variant of the well-studied cowpath problem, with applications in the design of hybrid algorithms. ⋆ This is an expanded version of a paper, with the same title, that will appear in the proceedings of ISAAC 2001 (LNCS 7074; T. Asano et al., Eds.). Many of the results appeared in a preliminary form in the first author’s B.Sc. thesis entitled “Input Thrifty Algorithm for the Strict Containment Problem”, Computer Science Department, U.B.C., April 2009.
منابع مشابه
Fractional Pebbling and Thrifty Branching Programs
We study the branching program complexity of the tree evaluation problem, introduced in [BCM+09a] as a candidate for separating NL from LogCFL. The input to the problem is a rooted, balanced dary tree of height h, whose internal nodes are labelled with d-ary functions on [k] = {1, . . . , k}, and whose leaves are labelled with elements of [k]. Each node obtains a value in [k] equal to its d-ary...
متن کاملInsights from the developing world: thrifty genotypes and thrifty phenotypes.
Few researchers would dispute that the pandemic of obesity is caused by a profound mismatch between humanity's present environmental circumstances and those that have moulded evolutionary selection. This concept was first articulated when gestational diabetes was described as being the result of a 'thrifty genotype rendered detrimental by progress'. More recently, this hypothesis has been exten...
متن کاملOn-line cursive letter recognition using sequences of local minima/maxima
This report presents the design and implementation of an on-line cursive letter recognizer using sequences of local extrema. Recognition tests were performed on single writer's data. The results for top five alternatives exceeded 90% (Table 4). The matching is performed in three stages: • letter size normalisation (Figure 1); • limiting the recognition domain using sequences of local extrema an...
متن کاملCan Thrifty Gene(s) or Predictive Fetal Programming for Thriftiness Lead to Obesity?
Obesity and related disorders are thought to have their roots in metabolic "thriftiness" that evolved to combat periodic starvation. The association of low birth weight with obesity in later life caused a shift in the concept from thrifty gene to thrifty phenotype or anticipatory fetal programming. The assumption of thriftiness is implicit in obesity research. We examine here, with the help of ...
متن کاملTexture and Color-based Image Retrieval Using the Local Extrema Features and Riemannian Distance
A novel efficient method for content-based image retrieval (CBIR) is developed in this paper using both texture and color features. Our motivation is to represent and characterize an input image by a set of local descriptors extracted at characteristic points (i.e. keypoints) within the image. Then, dissimilarity measure between images is calculated based on the geometric distance between the t...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011